const express=require("express");
var router=express.Router();
router.post("reg",(req,res)=>{
    var $uname=req.body.uname;
    var $upwd=req.body.upwd;
    var $phone=req.body.phone;
    var sql="insert into user_list values(null,?,?,null,?,null,null,null)"
    pool.query(sql,[$uname,$upwd,$phone],(err,result)=>{
        if(err) throw err;
        console.log(result);
        res.send("success");
    })
})
module.exports=router;
